

import '@/style2.css';

document.getElementById('root').innerHTML = 'index';


// service-worker应用
if ('serviceWorker' in navigator) {
  window.addEventListener('load', () => {
    navigator.serviceWorker.register('/service-worker.js')
      .then(() => {
        console.log('service-worker registed');
      })
      .catch(() => {
        console.log('service-worker register error');
      });
  });
}
